package com.guigu.erp.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.guigu.erp.dto.StorageGatherDetailsDto;
import com.guigu.erp.pojo.StorageGatherDetails;

import java.util.List;

public interface StorageGatherDetailsMapper extends BaseMapper<StorageGatherDetails> {
    /**
     * 通过id查询 入库表和入库明细表 查到库存单元的编号
     * @param productId
     * @return
     */
    StorageGatherDetailsDto listByParentId(String productId);

    /**
     * 入库明细回显复核
     * @param id
     * @return
     */
    List<StorageGatherDetails> detailsById(int id);
}
